<?php
class ORMpz_ecom_product_attribute {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->product_track_id)) {
      $obj->product_track_id =  $args->product_track_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->type)) {
      $obj->type =  $args->type;
    }
    if (isset($args->is_mandatory)) {
      $obj->is_mandatory =  $args->is_mandatory;
    }
    if (isset($args->intro_brief)) {
      $obj->intro_brief =  $args->intro_brief;
    }
    if (isset($args->order)) {
      $obj->order =  $args->order;
    }
    return $obj;
  }
}
?>
